package com.cloudlead.commonData.vo;

import com.cloudlead.common.lang.persistence.AbstractIdEntity;

import com.cloudlead.commonData.action.validator.OrderrecordValidatorGroup.*;

import javax.validation.constraints.Size;
import com.cloudlead.common.lang.annotation.Domain;
import com.cloudlead.common.lang.annotation.Label;
import java.lang.String;
import javax.validation.constraints.NotNull;

/**
 * Orderrecord is a Codegen vo type
 */
@Label("Orderrecord")
@Domain(domainClassName="com.cloudlead.commonData.entity.EOrderrecord")
public class Orderrecord extends AbstractIdEntity<String> {

    private static final long serialVersionUID =13152191669242L;    
    @Label("删除标记")
    @Size(max=8)
    private String flag;

    @NotNull(groups={Update.class})
    @Label("id")
    @Size(max=24)
    private String id;

    @Label("ip地址")
    @Size(max=45)
    private String ip;

    @Label("订单金额")
    @Size(max=45)
    private String orderCost;

    @Label("订单结束时间")
    @Size(max=45)
    private String orderEndTime;

    @Label("订单开始时间")
    @Size(max=45)
    private String orderStartTime;

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getOrderCost() {
        return orderCost;
    }

    public void setOrderCost(String orderCost) {
        this.orderCost = orderCost;
    }

    public String getOrderEndTime() {
        return orderEndTime;
    }

    public void setOrderEndTime(String orderEndTime) {
        this.orderEndTime = orderEndTime;
    }

    public String getOrderStartTime() {
        return orderStartTime;
    }

    public void setOrderStartTime(String orderStartTime) {
        this.orderStartTime = orderStartTime;
    }

    public String toString() {
         return String.format("Orderrecord { flag : %s,id : %s,ip : %s,orderCost : %s,orderEndTime : %s,orderStartTime : %s }",flag,id,ip,orderCost,orderEndTime,orderStartTime);
    }

}

